﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Zhongchouwwwww.webform
{
    public partial class project_add : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Config.Config.ThisUser.UserName==null)
            {
                Response.Redirect("user-login.aspx");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (CheckBox1.Checked )
            {
                if (Config.Config.ThisUser.UserName!="")
                {
                    Response.Redirect("project-add_item1.aspx");
                }
                else
                {
                    Response.Write(@"<script language >alert('请先登录')<" + "/script>");
                }
            }
            else
            {
                Response.Write(@"<script language >alert('请勾选同意条款')<" + "/script>");
            }
            
        }
    }
}